package com.sixbro.oauth2.service;

import com.sixbro.oauth2.domain.Member;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.stereotype.Service;

/**
 * @Author: Mr.Lu
 * @Since: 2020/6/14 22:53
 */
@Service
public class MemberService {

    /**
     *  根据用户名查询用户
     * @param username
     */
    public Member selectByUsername(String username) {
        return new Member("1","admin","123456","测试字段，根据用户名查询");
    }

    /**
     * 根据手机号查询用户
     * @param mobile
     */
    public Member selectByMobile(String mobile) {
        return new Member("2","guest","123456","测试字段，根据手机号查询");
    }
}
